{include file="public/header" /}
<style>
    .layui-copy{width: 30px;position:absolute;top:1px;bottom: 1px;right:1px;cursor:pointer;background:white;text-align: center;color: #999999c2;display: flex;align-items: center;justify-content: center;}
    .layui-copy:hover{color: #999999;}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-content layui-form layui-form-pane">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <span style="font-weight: bold;font-size: 15px;color: red;">订单内商品：</span>
            <div class="layui-form-item">
                <table class="layui-table">
                    <colgroup>
                        <col width="250">
                        <col width="200">
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>商品名</th>
                        <th>规格</th>
                        <th>数量</th>
                        <th>价格</th>
                        <th>小计</th>
                        <th>状态</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="goods" item="vo"}
                    <tr>
                        <td>{$vo.good_name}</td>
                        <td>{$vo.goods_info}</td>
                        <td>{$vo.num}</td>
                        <td>{$vo.unit_price}</td>
                        <td>{$vo.unit_price * $vo.num}</td>
                        {if $key==0}
                        <td rowspan="<?php echo count($goods); ?>">
                            {if $data.order_cancel_status == 2}已拒绝{/if}
                            {if $data.order_cancel_status == 3}已同意{/if}
                            {if $data.order_cancel_status == 4}审核中{/if}

                            {if $data.order_cancel_status == 3}
                                {if $data.order_cancel_pay == 2}
                                -未打款
                                {else /}
                                -已打款
                                {/if}
                            {/if}
                        </td>
                        {/if}
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <p style="font-weight: bold;font-size: 15px;">总计：{$data.total_price} 元</p>
            </div>
            <p style="font-weight: bold;font-size: 15px;color: red;">订单信息（{$data.order_contract==1 ? '自营订单' : '增补订单'}）：</p>
            <div class="layui-form-item">
                <label class="layui-form-label">订单号</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.order_no?:''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">商品金额</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.all_goods_price?:''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">运费</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.express_original_price?:''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">实付款</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.total_price?:''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户昵称</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.user_username?:'此用户暂无昵称'}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户手机号</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.user_phone?:''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.created_at?:''}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">支付方式</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{if condition='$data.pay_type==1'}微信{elseif condition='$data.pay_type==2'}支付宝{elseif condition='$data.pay_type==3'}银行卡{/if}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收件人</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.name?:''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收件人电话</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.mobile}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">收件地址</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.address}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">买家留言</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" readonly value="{$data.remark?:'无'}">
                </div>
            </div>
            <div class="layui-form-item layui-col-xs-offset2 layui-col-xs12">
                <div class="layui-input-block">
                    <!--{if condition="$data.is_pay == 1 && $data.is_send == 0 && $data.order_contract == 1"}-->
                    <!--<button class="btn btn-primary testtestwuliu" onclick="wk.layer_show('快递发货', '{:url('orderSend')}?order_id={$data.order_id}&type=1')"><i class="fa fa-send-o"></i> 填写发货物流</button>-->
                    <!--{/if}-->
                    <!--<button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>-->
                    <button class="layui-btn layui-btn-primary" onclick="wk.layer_close('close')">返回</button>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>


</script>
</body>
</html>